﻿using Host;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AXImServer
{
    public static class CallBackStatusDataEx
    {
        public static CallBackStatusData IdentityFailure()
        {
            return new CallBackStatusData { StatusCode = StatusCode.Fail, Message = "您的身份信息已经失效" };
        }

        public static CallBackStatusData Success(string message = null)
        {
            return new CallBackStatusData { StatusCode = StatusCode.Success, Message = message };
        }

        public static CallBackStatusData Fail(string message = null)
        {
            return new CallBackStatusData { StatusCode = StatusCode.Fail, Message = message };
        }
    }
}
